#include <stdio.h>
#include <stdlib.h>

int main (int argc, char const* argv[])
{
    int n, i, a, b, c, t;

    scanf("%d", &n);
    for (i = 1; i <= n; i++) {
        scanf("%d %d %d", &a, &b, &c);

        if (a > b) { t = a; a = b; b = t; }
        if (b > c) { t = b; b = c; c = t; }

        printf("Scenario #%d:\n", i);
        if (a*a + b*b == c*c) {
            printf("yes\n");
        } else {
            printf("no\n");
        }
        printf("\n");
    }

    return 0;
}
